<?php

/**
 * Category form.
 *
 * @package    myarticles
 * @subpackage form
 * @author     Apul Gupta<apulmca2k4@gmail.com>
 */
class CategoryForm extends BaseCategoryForm
{
  public function configure()
  {
      unset($this['created_at'], $this['updated_at']);
      if($this->getOption('isFront'))
      {
           unset($this['url_slug'], $this['article_category_list'], $this['is_active'] );
      }
      $this->widgetSchema['meta_description']   = new sfWidgetFormTextarea();
      $this->widgetSchema['meta_keyword']       = new sfWidgetFormTextarea();
      
     
      $this->widgetSchema['parent_id'] = new sfWidgetFormPropelChoice(array('model'=>'category',
                                                                            'peer_method'=>'doSelectForList'));

  }
}  
